<?php
 
include_once("./configure/configure.php");						//--> global var
include_once("./admin/tools/smarty/libs/Smarty.class.php");		//--> out template

include_once("impl/ContentImpl.php");



$id 	= intval($_GET['id']);
$page 	= intval($_GET['page']);


$oContImpl 	= new ContentImpl(DB_TAG_MM);


$oImages	= $oContImpl->getImagePage($id, $page);
	
$oData = array();

$oData['total'] 		= $oContImpl->getTotal();
$oData['pageCount'] 	= $oContImpl->getPageCount();
$oData['page'] 			= $oContImpl->getPage();
$oData['requestPage'] 	= $page;

$oData['oImages'] 		= $oImages;

echo json_encode($oData);	

?>
